//===================================================================
// 项目名 : Hbt.Cur
// 文件名 : HbtDbSeedGenConfig.cs
// 创建者 : Lean365
// 创建时间: 2024-03-20
// 版本号 : V0.0.1
// 描述    : 代码生成配置种子数据
//===================================================================

using Hbt.Domain.Entities.Generator;
using Newtonsoft.Json;

namespace Hbt.Infrastructure.Data.Seeds.Generator;

/// <summary>
/// 代码生成配置种子数据
/// </summary>
public class HbtDbSeedGenConfig
{
    /// <summary>
    /// 获取默认代码生成配置数据
    /// </summary>
    /// <returns>配置数据列表</returns>
    public List<HbtGenConfig> GetDefaultGenConfigs()
    {
        return new List<HbtGenConfig>
        {
            new HbtGenConfig { GenConfigName = "Default", Author = "Hbt365", ProjectName = "Lean.Hbt", ModuleName  = "Core", BusinessName = "HbtCore", FunctionName = "HbtCore", GenMethod = 0, GenTplType = 0, GenPath = "src/Hbt.WebApi/src", Options = JsonConvert.SerializeObject(new Dictionary<string, object> { { "isSqlDiff", 1 }, { "isSnowflakeId", 1 }, { "isRepository", 0 }, { "crudGroup", new[] { 1, 2, 3, 4, 5, 6, 7, 8 } } }), Status = 0 },
            new HbtGenConfig { GenConfigName = "CustomTemplate", Author = "Hbt365", ProjectName = "Lean.Hbt", ModuleName = "Core", BusinessName = "HbtCore", FunctionName = "HbtCore", GenMethod = 0, GenTplType = 1, GenPath = "src/Hbt.WebApi", Options = JsonConvert.SerializeObject(new Dictionary<string, object> { { "isSqlDiff", 1 }, { "isSnowflakeId", 1 }, { "isRepository", 1 }, { "crudGroup", new[] { 1, 2, 3, 4, 5, 6, 7, 8 } } }), Status = 0 }
        };
    }
}
